package com.matrix.kernel.controller.loadpage;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 加载应用程序
 * 
 * @author wubo
 *
 */
@Controller
public class LoadPageController {

	/**
	 * 加载shell主程序
	 * 
	 * @param model
	 * @param req
	 * @return
	 */
	@RequestMapping(value="/sh/index.html")
	public ModelAndView loadShell(Model model,HttpServletRequest req){
		model.addAttribute("title", "测试");
		return new ModelAndView("/sh/views/index","", model);
	}
	
	/**
	 * 加载module主程序
	 * 
	 * @param model
	 * @param req
	 * @return
	 */
	@RequestMapping(value="/module/index.html")
	public ModelAndView loadModule(Model model,HttpServletRequest req){
		return new ModelAndView("/module/views/index","", model);
	}

}
